import request from '@/utils/request'

export function IntegrityMaintenanceList(data) { //完整性维护-分页查询
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/page',
        method: 'post',
        data
    })
}
export function IntegrityMaintenanceAdd(data) { //完整性维护-添加
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/add',
        method: 'post',
        data
    })
}
export function IntegrityMaintenanceEdit(data) { //完整性维护-编辑
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/edit',
        method: 'post',
        data
    })
}
export function IntegrityMaintenanceDetails(id) { //完整性维护-单条查询
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/'+id,
        method: 'get',
    })
}
export function IntegrityMaintenanceDelete(id) { //完整性维护-删除
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/del/'+id,
        method: 'get',
    })
}
export function IntegrityMaintenanceIssue(data) { //完整性维护-编辑
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/issue',
        method: 'post',
        data
    })
}

export function IntegrityMaintenanceDetailPage(data) { //完整性维护-查看考试信息
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/detail/page',
        method: 'post',
        data
    })
}

export function IntegrityMaintenanceExcal(id,conid) { //导出试卷
    return request({
        url: '/maintenance-management/api/integrityMaintenanceExamination/export/'+id+'/'+conid,
        responseType: 'arraybuffer',
        method: 'get',
    })
}

export function IntegrityMaintenanceExist(data) { //分公司或人员回显
    return request({
        url: '/maintenance-management/api/integrityMaintenanceVolume/exist',
        method: 'post',
        data
    })
}